package com.ssf.hsdtouch.receiver;

import com.ssf.hsdtouch.MainActivity;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootReceiver extends BroadcastReceiver {
	static final String ACTION = "android.intent.action.BOOT_COMPLETED";

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(ACTION)) {
			Intent temp = new Intent(context, MainActivity.class);
			temp.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(temp);
		}
	}
}
